package com.sdp.irrigation.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.sdp.core.bizc.db.Query;
import com.sdp.core.bizc.vo.DataCenter;
import com.sdp.core.bizc.vo.Result;
import com.sdp.irrigation.db.irrigation_emp_field.service.impl.IrrigationEmpFieldServiceImpl;
import com.sdp.irrigation.view.IrrigationEmpFieldView;

/**
 * <p>
 * 人员田块信息 前端控制器
 * </p>
 *
 * @author zsp
 * @since 2024-12-22
 */
@RestController
@RequestMapping("/IrrigationEmpFieldController")
public class IrrigationEmpFieldController {
	
	@Autowired
	private IrrigationEmpFieldServiceImpl irrigationEmpFieldServiceImpl;
	
	@Autowired
	private Query query;
	
	@PostMapping(value = "/viewPage")
	public Result<?> viewPage(@RequestBody DataCenter dataCenter) {
		QueryWrapper<IrrigationEmpFieldView> queryWrapper = new QueryWrapper<>();
		return Result.ok(query.viewPage(irrigationEmpFieldServiceImpl, IrrigationEmpFieldView.class, dataCenter, queryWrapper));
	}
	
}

